package org.example;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import reactor.core.scheduler.Scheduler;
import reactor.core.scheduler.Schedulers;

@SpringBootApplication
public class SpringReactiveAPPlication {
    public static void main(String[] args) {
        SpringApplication.run(SpringReactiveAPPlication.class, args);
    }

    @Bean
    public Scheduler scheduler(){
        return Schedulers.newBoundedElastic(200, 100, "webflux--");
    }

}
